<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<link type="text/css" rel="styleSheet"  href="css/style1.css" th:href="@{static/css/style1.css}" />
<script type="text/javascript" src="js/jquery-1.8.3.min.js" th:src="@{static/js/jquery-1.8.3.min.js}"></script>

<!-- w3school上面扒下来的，目前发现文本框会好看一点 -->
<script type="text/javascript" src="http://www.francescomalagrino.com/BootstrapPageGenerator/3/js/jquery-2.0.0.min.js"></script>
<script type="text/javascript" src="http://www.francescomalagrino.com/BootstrapPageGenerator/3/js/jquery-ui"></script>
<link href="http://www.francescomalagrino.com/BootstrapPageGenerator/3/css/bootstrap-combined.min.css" rel="stylesheet" media="screen">
<script type="text/javascript" src="http://www.francescomalagrino.com/BootstrapPageGenerator/3/js/bootstrap.min.js"></script>

</head>
<body>
	webapp下的网页 
	<img alt="" src="img/box.png" th:src="@{static/img/box.png}">	
	<br>
	<input type="text" name="mss" id="mss" />
    <form name="emm" action="test" method="post">
    	<input type="text" value="name" name="name"/>   
    </form>
	
	<div id="LG" class="container-fluid">
	<div class="row-fluid">
		<div class="span3">
		</div>
		<div class="span6">
			<form>
				<fieldset>
					 <legend>表单项</legend> 
					 <label>表签名</label><input type="text" /> 
					 <span class="help-block">这里填写帮助信息.</span> 
					 <label class="checkbox"><input type="checkbox" /> 勾选同意</label> 
					 <button type="submit" class="btn">提交</button>
				</fieldset>
			</form>
		</div>
		<div class="span3">
		</div>
	</div>




</body>
    <script>  
    document.addEventListener('visibilitychange',function(){  
	    if(document.visibilityState=='hidden') {  
	    	normal_title=document.title;  
	    	document.title='(づ￣ 3￣)づ';
	    	//alert("想不到吧，被抓到切屏了！！")
	    }  
	    else  
	    	document.title=normal_title;  
    });  
    </script>
	<script type="text/javascript">

   	window.onload=function(){
        daojishi();
    }

 	var counttime=0.1*60;//总秒钟
     
    function daojishi(){
    	if(counttime>=0){
        	var ms = counttime%60;//余数 89%60==29秒
            var mis = Math.floor(counttime/60);//分钟
            if(mis>=60){
            	var hour=Math.floor(mis/60);

     			mis=Math.floor((counttime-hour*60*60)/60);

              	document.getElementById("mss").value="考试时间剩余"+hour+"小时"+mis+"分"+ms+"秒";
             }else if(mis>=1){
              	document.getElementById("mss").value="考试时间剩余"+mis+"分"+ms+"秒"; 
             }else{
              	document.getElementById("mss").value="考试时间剩余"+ms+"秒"; 
             }
             counttime--;
             vartt =  window.setTimeout("daojishi()",1000);
	  	}else{
	      	window.clearTimeout(vartt);
	      	window.confirm("考试时间结束,请单击提交"); 
	      	tijiao();
	  	}
     }
     
     function tijiao(){
        //document.forms[0].submit();
        $("form[name='emm']").submit();
     }
     
	</script>
</html>